import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 物料分类
 * */
// 创建
export const spinProductCategoryCreate = (data) => postRequest('/spin/product-category/create', data);

// 更新
export const spinProductCategoryUpdate = (data) => putRequest('/spin/product-category/update', data);

// 删除
export const spinProductCategoryDelete = (params) => deleteRequest('/spin/product-category/delete', params);

// 获得
export const spinProductCategoryGet = (params) => getRequest('/spin/product-category/get', params);

// 获得分页
export const spinProductCategoryPage = (params) => getRequest('/spin/product-category/page', params);
export const spinProductCategoryList = (params) => getRequest('/spin/product-category/list', params);

// 导出 Excel
export const spinProductCategoryExportExcel = (params) => getRequest('/spin/product-category/export-excel', params);

// 提交
export const spinProductCategorySubmitAudit = (params) => postRequest('/spin/product-category/submit-audit', params);
// 撤销提交
export const spinProductCategoryClearSubmitAudit = (params) => postRequest('/spin/product-category/clear-submit-audit', params);
// 审核
export const spinProductCategoryAudit = (params) => postRequest('/spin/product-category/audit', params);
// 撤销审核
export const spinProductCategoryClearAudit = (params) => postRequest('/spin/product-category/clear-audit', params);
// 保存并审核
export const spinProductCategoryCreateAudit = (params) => postRequest('/spin/product-category/create-audit', params);
// 更新并审核
export const spinProductCategoryUpdateAudit = (params) => putRequest('/spin/product-category/update-audit', params);
// 关闭
export const spinProductCategoryClose = (params) => postRequest('/spin/product-category/close', params);
// 撤销关闭
export const spinProductCategoryClearClose = (params) => postRequest('/spin/product-category/clear-close', params);
export const spinProductCategoryUpdateAuditState = (params) => postRequest('/spin/product-category/update-audit-state', params);
